/*
 * CollectGoodsHolder.java
 * business
 *
 * Created by SunDing on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.widget.listview.viewholder;

import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.yidiandao.business.R;
import com.yidiandao.business.ui.widget.listview.ViewHolder;

/** 我的收藏- 商品Item -ViewHolder */
public class CollectGoodsHolder extends ViewHolder {
    public ImageView mIvGoodsImage;
    public TextView mTvTitle;
    public TextView mTvPrice;
    public TextView mTvCollect;
    public TextView mTvBuy;
    public LinearLayout mLlGoodsInfo;
    public TextView mTvStatus;

    @Override
    protected void initView(View rootView) {
        mLlGoodsInfo = (LinearLayout) rootView.findViewById(R.id.ll_goods_info);
        mIvGoodsImage = (ImageView) rootView.findViewById(R.id.iv_goods_image);
        mTvTitle = (TextView) rootView.findViewById(R.id.tv_title);
        mTvPrice = (TextView) rootView.findViewById(R.id.tv_price);
        mTvCollect = (TextView) rootView.findViewById(R.id.tv_collect);
        mTvBuy = (TextView) rootView.findViewById(R.id.tv_buy);
        mTvStatus = (TextView) rootView.findViewById(R.id.tv_status);
    }

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_collect_goods;
    }
}
